<template>
  <inputSelect  v-model="fmaterialid" ref="obj"
                :f7Param="f7Param"
                :f7Disable="disabled"
                :title="title"
                :loadShow="loadShow"
                :onF7DaTaSelected="onF7DaTaSelected"
                v-on:onF7DaTaSelected="onF7DaTaSelected"
  >
  </inputSelect>
</template>

<script>
    export default {
        name: "demo-facility",
      methods:{
        onF7DaTaSelected(row){
          this.$emit('input',row[this.f7Param.selectId])
          this.$emit('change',row)
        },
        cleanF7(){
          this.$refs.obj.cleanF7()
        },
        defaultSelect(data){
          this.$refs.obj.defaultSelect(data)
        },
        refresh(filters){
          let realFilter = [];
          if(this.filter!=null){
            realFilter = this.f7Param.defaultFilter.concat(this.filter)
          }
          if(filters != null){
            realFilter = realFilter.concat(filters)
          }
          this.f7Param.defaultFilter = realFilter;
          this.$refs.obj.refresh()
        }
      }
    }
</script>

<style scoped>

</style>
